<?php
 header("Content-type:text/html;charset=utf-8");
	$title=$_POST[title];
	$desc=$_POST[content];
	$id=$_GET[id];
	
	$link=mysql_connect("localhost","root","root") or die("数据库无法连接成功");
	mysql_select_db("db_ee",$link) or die("数据库访问错误");
	mysql_query("set names utf8");
	$sql=mysql_query("update mk set `title`='$title', `desc`='$desc' where id=$id");
    echo "<script> alert('模块编辑成功'); window.location.href='search.php';</script>";
?>